<template>
    <div>
        <Demo :click="handleClick" />
    </div>
</template>

<script>
import Demo from './Demo.vue';
    export default {
        components: {
            Demo
        },
        methods: {
            handleClick(count) {
                console.log("父组件",count);
                    return new Promise(r=> setTimeout(() => {
                        r('父组件-错误')
                    }, 2000))
            }
        }
    }
</script>

<style lang="less" scoped>

</style>